Scroll to navigation

lsm_volume_enable(3) Libstoragemgmt C API Manual lsm_volume_enable(3)

NAME

lsm_volume_enable - Set a Volume to online

SYNOPSIS

int lsm_volume_enable (lsm_connect *conn, lsm_volume *volume, lsm_flag flags);

ARGUMENTS

Valid lsm_connect pointer.
The pointer of lsm_volume to be enabled.
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

VERSION

1.0

DESCRIPTION

Enable the specified volume when that volume is disabled by administrator or via lsm_volume_disable.

CAPABILITY

LSM_CAP_VOLUME_ENABLE

RETURN

Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or not a valid lsm_connect pointer
or invalid flags.
* LSM_ERR_NOT_FOUND_VOLUME
When volume not found.
* LSM_ERR_POOL_NOT_READY
Pool is not ready.
* LSM_ERR_NO_SUPPORT
Not supported.

lsm_volume_enable April 2021